package top.codecrab.eblog.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.shiro.authc.UsernamePasswordToken;
import top.codecrab.eblog.common.response.R;
import top.codecrab.eblog.entity.UserSocial;

/**
 * <p>
 * 用户与第三方账户绑定表 服务类
 * </p>
 *
 * @author codecrab
 * @since 2021-08-19
 */
public interface UserSocialService extends IService<UserSocial> {

    UserSocial getBySocialUidAndSocialName(String socialUid, String socialName);

    UsernamePasswordToken socialLogin(UserSocial userSocial);

    void socialBind(UserSocial userSocial, Long userId);

    R doUnBind(String type, Long profileId);
}
